package com.mt.fpb.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("wechat_user_info")
public  class WechatUser {

    @TableId(value = "id", type = IdType.AUTO)
    //微信用户id
    private Integer id;
    //用户openId
    private String openId;
    //用户昵称
    private String nickName;
    //用户性别
    private int sex;
    //用户所在的城市
    private String city;
    //用户所在的国家
    private String country;
    //用户所在的省份
    private String province;
    //用户头像
    private String headImgUrl;


    public WechatUser(String openId, String nickName, int sex, String city, String country, String province, String headImgUrl) {
        this.openId = openId;
        this.nickName = nickName;
        this.sex = sex;
        this.city = city;
        this.country = country;
        this.province = province;
        this.headImgUrl = headImgUrl;
    }
}
